package pl.poznan.put.cs.idss.particlefilter.ui;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JSlider;

/**
 * Klasa głównego okna aplikacji.
 * 
 * @author Kornel Lewandowski
 * 
 */
public class MainWindow extends JFrame {

	private static final long serialVersionUID = 3053602659358062377L;

	private Board board;
	private Toolbox toolbox;

	public MainWindow() throws Exception {

		setBoard(new Board());
		toolbox = new Toolbox(this);
		setSize(800, 435);
		setVisible(true);
		add(getBoard());
		toolbox.setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board board) {
		this.board = board;
	}

}
